add read-only "scroll_offset" property for notification when the layout
authorHavoc Pennington <hp@redhat.com>
Sat, 9 Jun 2001 00:12:00 +0000 (00:12 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Sat, 9 Jun 2001 00:12:00 +0000 (00:12 +0000)
commit994a8daae5455773d40caa71121a1763bbeb2b61
treeb26ebe0f23910fc381eaf08fa503d807dea0d7a4
parenta055d0620d91d7ca61c633acc6a94845db4f13b6
add read-only "scroll_offset" property for notification when the layout

2001-06-08  Havoc Pennington  <hp@redhat.com>

* gtk/gtkentry.c (gtk_entry_class_init): add read-only
"scroll_offset" property for notification when the layout offsets
may have changed
(gtk_entry_adjust_scroll): add notify for scroll_offset
(gtk_entry_layout_index_to_text_index): function to compensate for
preedit string when doing coordinate stuff on the entry's layout
(gtk_entry_text_index_to_layout_index): inverse function
(gtk_entry_get_layout_offsets): hook to get current position of
the layout
(gtk_entry_get_layout): hook to get the layout itself.

* gtk/gtklabel.c (gtk_label_get_layout): new function
12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/gtk/tmpl/gtkentry.sgml
gtk/gtkentry.c
gtk/gtkentry.h
gtk/gtklabel.c
gtk/gtklabel.h